﻿@model PlmPersonLeaveViewModel
@{
    Layout = null;
    ViewBag.Title = "监理人员请假管理——审核";
}
<script src="/Scripts/jQuery/jquery.validate.min.js" type="text/javascript"></script>
<script src="/Scripts/jQuery/jquery.validate.unobtrusive.min.js" type="text/javascript"></script>
<script type="text/javascript">
    function dialogRefresh(json) {
        DWZ.ajaxDone(json);
        if (json.statusCode == DWZ.statusCode.ok) {
            $("#pagerForm", navTab.getCurrentPanel()).submit();
            $.pdialog.closeCurrent();
        }
    }
</script>
@{Html.EnableClientValidation();}
@using (Html.BeginForm("SaveCheckResult", "PlmPersonLeave", null, FormMethod.Post, new { onsubmit = "return validateCallback(this,dialogRefresh);", @class = "pagerForm required-validate" }))
{
@*<form method="post" action="@Url.Action("SaveCheckResult", "PlmPersonLeave")" class="pageForm required-validate" onsubmit="return validateCallback(this,dialogAjaxDone)">*@
    <div class="pageFormContent" layouth="58">
        @Html.TextBoxFor(m => m.TheAuditInfo.A_ID, new { @type = "hidden" })
        @Html.TextBoxFor(m => m.TheAuditInfo.A_State, new { @type = "hidden" })
        @Html.TextBoxFor(m => m.TheAuditInfo.A_PrimayID, new { @type = "hidden" })
        @Html.TextBoxFor(m => m.TheAuditInfo.A_DepID, new { @type = "hidden" })
        @Html.TextBoxFor(m => m.TheAuditInfo.A_DepName, new { @type = "hidden" })
        <table class="tab01 tabNo">
            <tr>
                <td class="td1" style="width: 25%;">审批人：
                </td>
                <td>
                    @Html.TextBoxFor(m => m.TheAuditInfo.A_ManID, new { @type = "hidden" })
                    @Html.TextBoxFor(m => m.TheAuditInfo.A_ManName, new { @readonly = "true", @class = "input02" })
                </td>
            </tr>
            <tr>
                <td class="td1">审批时间：
                </td>
                <td>
                @Html.TextBoxFor(m => m.TheAuditInfo.A_Time, new { @class = "input02", @readonly = "true", Value = Model.TheAuditInfo.A_Time.ToString("yyyy-MM-dd HH:mm:ss") })
            </tr>
            <tr>
                <td class="td1">审批：
                </td>
                <td>
                    @Html.DropDownListFor(m => m.TheAuditInfo.A_IsApproved, ViewBag.listState as IEnumerable<SelectListItem>)
                </td>
            </tr>
            @if (ViewBag.State != 0)
            {
                <tr>
                    <td class="td1">审批意见：
                    </td>
                    <td>
                        @Html.TextBoxFor(m => m.TheAuditInfo.A_Opinion, new Dictionary<string, object> { { "class", "input05" } })
                        @Html.ValidationMessageFor(m => m.TheAuditInfo.A_Opinion)
                        @*@Html.TextBoxFor(m => m.TheAuditInfo.A_Opinion, new { @class = "required input05", @size = "50" })*@
                    </td>
                </tr>
            }
        </table>
    </div>
    <div class="formBar">
        <ul>
            <li>
                <button type="submit" class="btn btn-sm">
                    审批</button>
            </li>
            <li>
                <button type="button" class="close btn btn-default btn-sm">
                    取消</button>
            </li>
        </ul>
    </div>
@*</form>*@
}
